package cn.fbs.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author yuyuesheng
 * @version 1.0
 * @description: TODO
 * @date 2021/2/2 8:45
 */

@ApiModel("图册树形结构")
@Data
public class TAtlasinfoTree {

    /**
     * 类型id
     */
    @ApiModelProperty(name = "id", value = "类型Id",example = "1")
    private Integer id;

    /**
     * 图册或类型名称
     */
    @ApiModelProperty(name = "atlasName", value = "类型名称")
    private String atlasName;

    /**
     * 文件保存路径
     */
    @ApiModelProperty(name = "fileUrl",value = "文件保存路径")
    private String fileUrl;

    /**
     * 图册或类型描述
     */
    @ApiModelProperty(name = "memo", value = "图册或类型描述")
    private String memo;

    /**
     * 父节点id
     */
    @ApiModelProperty(name = "pid", value = "父节点id",example = "0")
    private Integer pid;

    /**
     * 用户id
     */
    @ApiModelProperty(name = "userId", value = "用户id",example = "1")
    private Integer userId;

    /**
     * 数据类型
     */
    @ApiModelProperty(name = "dataType", value = "0.类型数据 1.图册数据",example = "1")
    private Integer dataType;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "createDate", value = "创建时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;

    /**
     * 修改时间
     */
    @ApiModelProperty(name = "updateDate", value = "修改时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date updateDate;

    @ApiModelProperty(name = "childrens", value = "子级类型")
    private List<TAtlasinfoTree> childrens;
}
